import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import*
testCase15='DBshop015_添加侧边设置'
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,'商品管理','管理分类','前台侧边设置')# 进入后天侧边设置
firefox.find_element_by_partial_link_text('添加侧边显示').click() #点击添加侧边设置
firefox.find_element_by_id('frontside_name').send_keys('网站很好看')# 显示名称输入
firefox.find_element_by_id("frontside_sort").clear()#清除
firefox.find_element_by_id("frontside_sort").send_keys('255')# 排序输入
firefox.find_element_by_xpath('//button').click() #点击保存侧边信息

try:
    firefox.find_element_by_xpath('//table/tbody/tr[1]/td[1]').text=='网站很好看'
    writeLog("%s 测试通过" % testCase15)
except:
    writeLog("%s 测试不通过" % testCase15)
    getPhoto(firefox)
firefox.quit()



